package com.sky.service;

import com.sky.dto.EmployDTO;
import com.sky.dto.EmployLoginDTO;
import com.sky.entity.EmployeeEntity;
import com.sky.enumeration.EmployeeStatusEnum;
import com.sky.result.TableDataInfo;

import java.util.List;

public interface EmployeeService {

    /****
     * 员工登录 =》后台登录
     */
    EmployeeEntity login(EmployLoginDTO loginDTO);

    void save(EmployDTO dto);

    List<EmployeeEntity> page(String name, Integer page, Integer size);

    void enableOrDisable(EmployeeStatusEnum statusEnum, Long id);

    EmployeeEntity getById(Long id);

    void update(EmployDTO employDTO);
}
